package lab2.demo;

import jdk.nashorn.internal.runtime.logging.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;

public class NoticeEvent extends ApplicationEvent {


    private final String message;

    public NoticeEvent(String message){
        super(message);
        this.message=message;
        System.out.println("添加事件成功!"+"，事件是"+message);
    }
    public String getMessage(){return message;}
}
